<?php


namespace app\common\model;

/**
 * 菜单模型
 */
class Menu extends ModelBase
{


    public function getMenuList($where = [], $field = true, $order = 'id asc'){
        $list =   $this->where($where)->field($field)->where('status', '<>', -1)->order($order)->select();
        $list = !empty($list) ? $list->toArray() : [];
        return $list;
    }




}
